"""
用户相关的序列化字段
"""

from flask_restful import fields

user_fields = {
    'uid': fields.Integer,
    'account': fields.String,
    'password': fields.String,
    'mobile': fields.String,
    'user_name': fields.String,
    'following_count': fields.Integer,
    'fans_count': fields.Integer
}

vip_fields = {
    'id': fields.Integer,
    'title': fields.String,
    'level': fields.Integer,
    'price': fields.Price,
    'desc': fields.String,
    'period': fields.Integer,
    'exempt_cour': fields.Integer,
    'vip_cour': fields.Integer,
    'environment': fields.Integer,
    'save': fields.Integer,
    'client': fields.Integer,
    'ssh': fields.Integer,
    'web_ide': fields.Integer,
    'discounts': fields.Integer,
    'exempt_study': fields.Integer
}


